package com.kjc.demo.basic.designermodel.observer;

public class ObserveTest {
	public static void main(String[] args) {
		Idol idol = new ConcereteIdol();
		ConcereteFan zs = new ConcereteFan("张三");
		ConcereteFan ls = new ConcereteFan("李四");
		ConcereteFan ww = new ConcereteFan("王五");
		idol.addFan(zs);
		idol.addFan(ls);
		idol.addFan(ww);
		idol.notify("下棋，打球，跑步，娱乐");
	}
}
